import { AxiosPromise } from "node_modules/axios/index";
import { LoginData, LoginResult } from "./types";
import request from "@/utils/request";

export function loginApi(data: LoginData): AxiosPromise<LoginResult> {
  return request({
    url: "/api/v1/auth/login",
    method: "post",
    params: data,
  });
}
